package com.kaifamiao.www.demo.Do29.am;

public class Pet {
    public void say(){
        System.out.println(" 叫 叫 叫");
    }

    public void lookDoor() {
    }
}

class Dog extends Pet{
    @Override
    public void say(){
        System.out.println(" 你 在 狗 叫 什 么 ");
    }
    public void lookDoor(){
        System.out.println("看门");
    }
}
class HSQDog extends Dog{
    public void chai(){
        System.out.println("拆家");
    }

}
class Cat extends Pet{
    @Override
    public void say(){
        System.out.println(" 猫 叫 ");
    }
    public void lu(){
        System.out.println("撸猫");
    }
}
class Pig extends Pet{
    @Override
    public void say(){
        System.out.println("哼 哼");
    }
}